/**
 * 提示管理
 */
cc.Class({
    extends: cc.Component,

    properties: {
        hintItem: [cc.Node],
    },

    // LIFE-CYCLE CALLBACKS:

    onLoad () {
        this._isHinted = false;
        this.node.on('touchstart', this.disableHint, this);
    },

    start () {

    },

    // update (dt) {},

    /**
     * 隐藏提示信息
     */
    disableHint () {
        if (this._isHinted) return;
        this._isHinted = true;
        this.scheduleOnce(function(){
            for (var i = 0; i < this.hintItem.length; i++) {
                this.hintItem[i].runAction(cc.fadeOut(1));
            }
        },2);
    },
});
